package org.online.vo;

/**
 * 响应数据的封装 - 便于后端开发与前端开发友好的交互
 */
public class ResultVO {
    /**
     * 响应代码
     * 200:成功
     * 500:服务器端异常
     * 500100 : 登录失败
     */
    private Integer code ;

    /**
     * 响应数据
     */
    private Object data ;

    /**
     * 响应消息
     */
    private String msg ;

    public ResultVO(){

    }

    public ResultVO(Integer code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
